﻿Partial Public Class ProductExplorer

    Public Overridable Sub TreeActionOptionListLoad()
        Me.MetaControlTreeListActionOptionList.Add(New ActionOption("ProductRoot", "ACT_00203", "Card view", AddressOf Product_GridLayout, True, True, 0))

    End Sub

    Public Overridable Sub InitNewMasterRow(sender As Object, e As InitNewRowEventArgs)
        Dim view As GridView = CType(sender, GridView)
        Dim row As DataRow = view.GetFocusedDataRow()
        Using Product As SystemBoxSDK.PL.CoreSDK.Product_PL = New SystemBoxSDK.PL.CoreSDK.Product_PL()
            Product.NewRecord(row)
        End Using
        row("Inactive") = 0
    End Sub


    Public Overridable Sub InitNewLayoutRow(sender As Object, e As InitNewRowEventArgs)
        Dim LayoutView As LayoutView = CType(sender, LayoutView)
        Dim row As DataRow = LayoutView.GetFocusedDataRow()
        Using Product As SystemBoxSDK.PL.CoreSDK.Product_PL = New SystemBoxSDK.PL.CoreSDK.Product_PL()
            Product.NewRecord(row)
        End Using
        row("Inactive") = 0
    End Sub
End Class
